package com.javakc.mes.basis.section.service;

import com.javakc.commonutils.jpa.base.service.BaseService;
import com.javakc.mes.basis.section.dao.SectionDao;
import com.javakc.mes.basis.section.entity.Section;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SectionService extends BaseService<SectionDao, Section> {

    /**
     * 查询全部数据
     * @return 实体类
     */
    public List<Section> queryAll(){
        return dao.findAll();
    }

     /**
     * 新增一条
     * @param section 实体类
     */
    public void insert(Section section){
        saveOrUpdate(section);
    }
}
